package com.zlm.common.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zlm.common.base.BaseEntity;

import java.util.Date;

/**
 * @Author: duyufu
 * @Date: 2019/4/23 15:24
 */
public class SysBannerDO extends BaseEntity {


    private static final long serialVersionUID = 3266735521981997619L;
    /**
     * 主键id
     */
    private Integer bannerId;
    /**
     * 轮播图路径
     */
    private String imgSrc;
    /**
     * 图片类型
     */
    private Integer type;
    /**
     * banner图片来源（1-官网，2-个人版app）
     */
    private Integer source;
    /**
     * 链接地址
     */
    private String linkUrl;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 是否有效
     */
    private Integer isAlive;
    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date createTime;
    /**
     * 创建用户
     */
    private String createUser;
    /**
     * 最后一次更新时间
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date lstUpdTime;
    /**
     * 最后一次更新用户
     */
    private String lstUpdUser;

    public Integer getBannerId() {
        return bannerId;
    }

    public void setBannerId(Integer bannerId) {
        this.bannerId = bannerId;
    }

    public String getImgSrc() {
        return imgSrc;
    }

    public void setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getIsAlive() {
        return isAlive;
    }

    public void setIsAlive(Integer isAlive) {
        this.isAlive = isAlive;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getLstUpdTime() {
        return lstUpdTime;
    }

    public void setLstUpdTime(Date lstUpdTime) {
        this.lstUpdTime = lstUpdTime;
    }

    public String getLstUpdUser() {
        return lstUpdUser;
    }

    public void setLstUpdUser(String lstUpdUser) {
        this.lstUpdUser = lstUpdUser;
    }

    @Override
    public String toString() {
        return "SysBannerDO{" +
                "bannerId=" + bannerId +
                ", imgSrc='" + imgSrc + '\'' +
                ", type=" + type +
                ", source=" + source +
                ", linkUrl='" + linkUrl + '\'' +
                ", sort=" + sort +
                ", isAlive=" + isAlive +
                ", createTime=" + createTime +
                ", createUser='" + createUser + '\'' +
                ", lstUpdTime=" + lstUpdTime +
                ", lstUpdUser='" + lstUpdUser + '\'' +
                '}';
    }
}
